<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
    <base href="<%=basePath%>">
    <title>My JSP 'messageBoard.jsp' starting page</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">

</head>
<body>

<form action="/notice" method="post">
    <input type="hidden" name="action" value="addNotice">
    <br>
    留言者：<input type="text" name="cretedUser" size="30"/>
    <br/>
    留言标题：<input type="text" name="title" size="30"/>
    <br>
    留言内容：<textarea name="content" rows="8" cols="30"></textarea>
    <br/>
    <input type="submit" value="提交" >
    <input type="reset" value="重置">
</form>

<a href="/pages/notices/success.jsp ">查看留言</a>
</body>
</html>